/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.product.entity.AddPurchaseSetting
   Module Description   :

   Date Created      : 2010/4/28
   Original Author   : afra.chou
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.product.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author afra.chou 满额购条件设定
 * 
 */
@Entity
@Table(name = "EC_ADD_PURCHASE_SETTING")
public class AddPurchaseSetting extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -367148004638342325L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_add_purchase_setting")
	@SequenceGenerator(name = "seq_ec_add_purchase_setting", sequenceName = "SEQ_EC_ADD_PURCHASE_SETTING")
	@Column(name = "SETTING_ID")
	private Long settingId;

	/**
	 * 有效起始日期 Start Date
	 */
	@Column(name = "START_DATE", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date startDate;

	/**
	 * 有效結束日期 END Date
	 */
	@Column(name = "END_DATE", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date endDate;

	/**
	 * 滿額購基準價
	 */
	@Column(name = "BASE_PRICE", nullable = false, columnDefinition = "NUMERIC(10, 2)")
	private BigDecimal basePrice;

	public Long getSettingId() {
		return settingId;
	}

	public void setSettingId(Long settingId) {
		this.settingId = settingId;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public BigDecimal getBasePrice() {
		return basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

}
